home *** CD-ROM | disk | FTP | other *** search
- /*
- * UStandAlone.h
- * based on A5World.h by Patrick Beard, ©1990 by Patrick C. Beard. All rights reserved.
- *
- * KNOWN BUGS AND SHORTCOMINGS:
- * TStandAloneWorld::fOurA5 is allocated as a non-relocatable heap object
- */
-
- #ifndef __USTANDALONE__
- #define __USTANDALONE__
-
- #ifndef __UHANDLEOBJECT__
- #include <UHandleObject.h>
- #endif
-
- typedef Ptr A5Reference;
-
- class TStandAloneWorld: public THandleObject {
- public:
- TStandAloneWorld(Boolean codeFloats = true);
- ~TStandAloneWorld();
- void Enter(); // swap in our A5 world
- void Leave(); // restore caller’s A5 world
- private:
- long fA5WorldSize;
- Boolean fCodeFloats;
- A5Reference fOurA5;
- A5Reference fTheirA5;
- };
-
- #endif